package com.zzhrtech.wgzx_cityzen.beans.me;

/**
 * Created by renxiangpeng on 16/7/20.
 */
public class LoginBean {
    String code;
    String msg;
    Data data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data{
        String id;
        String head;
        String username;
        String nickname;
        String viewhead;
        String num;
        String sort;
        String recycle;
        String account;

        public String getAccount() {
            return account;
        }

        public void setAccount(String account) {
            this.account = account;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getNum() {
            return num;
        }

        public void setNum(String num) {
            this.num = num;
        }

        public String getSort() {
            return sort;
        }

        public void setSort(String sort) {
            this.sort = sort;
        }

        public String getRecycle() {
            return recycle;
        }

        public void setRecycle(String recycle) {
            this.recycle = recycle;
        }

        public String getHead() {
            return head;
        }

        public void setHead(String head) {
            this.head = head;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getViewhead() {
            return viewhead;
        }

        public void setViewhead(String viewhead) {
            this.viewhead = viewhead;
        }
    }

    public boolean isSuccess(){
        return code.equals("0");
    }
}
